package adv5;

public enum Star {
	Shuixing(110.5, "水星", 10000), Jinxing(1110.5, "金星", 390000), Earch(1110.5,
			"地球", 390000), Huoxing(1110.5, "火星", 390000);

	private double weight;
	private String name;
	private long distance;

	private Star(double weight, String name, long distance) {
		this.weight = weight;
		this.name = name;
		this.distance = distance;
	}

	@Override
	public String toString() {
		return "(这个行星叫" + name + ",自重" + weight + "吨，距离太阳" + distance + "公里)";
	}
}
